//
//  HomeCellFlowLayout.m
//  LoveBeeProject
//
//  Created by skywalker on 17/1/8.
//  Copyright © 2017年 斯芬克斯. All rights reserved.
//

#import "HomeCellFlowLayout.h"

@implementation HomeCellFlowLayout
- (void)prepareLayout {
    [super prepareLayout];
    
    CGFloat itemW = (self.collectionView.bounds.size.width - 9) * 0.5;
    CGFloat itemH = itemW * 1.3;
    self.itemSize = CGSizeMake(itemW, itemH);
    
    self.headerReferenceSize = CGSizeMake(self.collectionView.bounds.size.width, 120);
    
    //关闭弹簧
    self.collectionView.bounces = NO;
    //间距
    self.minimumLineSpacing = 1;
    self.minimumInteritemSpacing = 1;
    
}

@end
